package com.luzhikun.filterUrlPatten;

import javax.servlet.*;
import javax.servlet.http.*;
import java.io.IOException;

public class SomeServlet extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

        System.out.println("指定SomeServlet");

//        request.getRequestDispatcher("/otherServlet").forward(request,response);
        response.sendRedirect(request.getContextPath() + "/otherServlet");
    }

}
